const http = require('../utils/http')

const HTTP = new http.HTTP()

export function GetVoteDetail(id , callback) {
    // console.log(id)
    HTTP.request('/election/election/'+id, 'GET',id, res => {
        callback(res)
    })
}
export function electionVote(params , callback) {
    console.log(params)
    HTTP.request('/election/vote',"POST" , params,res=>callback(res))
}
